package com.shenmazong.ware.service;


import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.MessageVo;
import com.shenmazong.ware.service.impl.MessageServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "server-shop-mq", fallback = MessageServiceImpl.class)
@Component
public interface MessageService {

    @PostMapping(value = "/message/sendMessage")
    ResultResponse sendMessage(@RequestBody MessageVo messageVo);

}
